package br.com.absolutech.study.chapter5.p198;
public class BreakContinue {
	public static void main(String[] args) {

		for (int i = 0; i < 2; i++) {
			while (true) {
				System.out.println("Hello1");
				break; //iria ser impossivel compilar este codigo sem esta linha
			}
			System.out.println("loop for1");
		}
		System.out.println("Good Bye1\n");

		for (int i = 0; i < 3; i++) {
			System.out.println("loop for2");
			break;
		}
		System.out.println("Good Bye2\n");

		for (int i = 0; i < 3; i++) {
			System.out.println("loop for3");
			continue;
		}
		System.out.println("Good Bye3");
	}
}
